/**
 * 
 */
package com.leruan.aasimp.service.impl;

import java.util.List;

import com.leruan.aasimp.dao.CarInfoDao;
import com.leruan.aasimp.dao.CarInsuranceComDao;
import com.leruan.aasimp.dao.CarMainInfoDao;
import com.leruan.aasimp.dao.CarMrOddDAO;
import com.leruan.aasimp.dao.EauserDao;
import com.leruan.aasimp.entity.CarInfo;
import com.leruan.aasimp.entity.CarInsuranceCom;
import com.leruan.aasimp.entity.CarMainInfo;
import com.leruan.aasimp.entity.CarMrOdd;
import com.leruan.aasimp.entity.Eauser;
import com.leruan.aasimp.service.CosmetologyService;

/**
 * @author 冰
 *美容
 */
public class CosmetologyServiceImpl implements CosmetologyService{
	
	private CarInsuranceComDao carinsuranceComDao;
	private EauserDao eauserDao;
	private CarMrOddDAO carMrOddDAO;
	private CarMainInfoDao carMainInfoDao;
	private CarInfoDao carInfoDao; 

	public CarInfoDao getCarInfoDao() {
		return carInfoDao;
	}

	public void setCarInfoDao(CarInfoDao carInfoDao) {
		this.carInfoDao = carInfoDao;
	}

	public CarMainInfoDao getCarMainInfoDao() {
		return carMainInfoDao;
	}

	public void setCarMainInfoDao(CarMainInfoDao carMainInfoDao) {
		this.carMainInfoDao = carMainInfoDao;
	}

	public CarMrOddDAO getCarMrOddDAO() {
		return carMrOddDAO;
	}

	public void setCarMrOddDAO(CarMrOddDAO carMrOddDAO) {
		this.carMrOddDAO = carMrOddDAO;
	}

	public EauserDao getEauserDao() {
		return eauserDao;
	}

	public void setEauserDao(EauserDao eauserDao) {
		this.eauserDao = eauserDao;
	}

	public List<Eauser> getEausersByType(int type) {
		return eauserDao.getEausersByType(type);
	}

	public void addApply(CarMrOdd mrOdd) {
		carMrOddDAO.addApply(mrOdd);
	}

	public List<CarMrOdd> getMrOddsByUn(String username) {
		return carMrOddDAO.getMrOddsByUn(username);
	}

	public CarMrOdd getMrOddsById(Long id) {
		return carMrOddDAO.getMrOddsById(id);
	}

	public void updateApply(CarMrOdd mrOdd) {
		carMrOddDAO.update(mrOdd);
	}

	public List<CarMainInfo> getCarManagesByUc(String usercard) {
		return carMainInfoDao.getCarsInfoByIdd(usercard);
	}

	public CarInsuranceCom getCompanyByUid(Long idCompany) {
		return carinsuranceComDao.getComById(idCompany);
	}

	public CarInsuranceComDao getCarinsuranceComDao() {
		return carinsuranceComDao;
	}

	public void setCarinsuranceComDao(CarInsuranceComDao carinsuranceComDao) {
		this.carinsuranceComDao = carinsuranceComDao;
	}

	public List<CarInfo> getAllMrInfo(int pageNo) {
		return carInfoDao.getAllMrInfo(pageNo);
	}

	public Eauser getEauserByUid(String userid) {
		return eauserDao.getEauserByUid(userid);
	}

	public Long getMrCount() {
		return carInfoDao.getMrCount();
	}



}
